from ultralytics import YOLO
model_path = 'data/weights/best.torchscript'
model = YOLO(model_path)
print(type(model.model))  # 查看模型对象的类型